import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class GetInputTextFieldUtils {
  //获取输入框
  static Widget? getInputTextField(
    TextInputType keyboardType, {
    FocusNode? focusNode,
    controller = TextEditingController,
    onChanged = Function,
    InputDecoration? decoration,
    bool obscureText = false,
    // height = 50.0,
  })
  {
    return Container(
      // height: height,
      margin: const EdgeInsets.all(10.0),
      child: Column(
        children: [
          TextField(
            keyboardType: keyboardType,
            focusNode: focusNode,
            obscureText: obscureText,
            controller: controller,
            decoration: decoration,
            onChanged: onChanged,
          ),
          // Divider(
          //   height: 1.0,
          //   color: Colors.grey[400],
          // ),
        ],
      ),
    );
  }
}
